using System;
using System.Windows.Forms;

namespace SampleApp
{
    /// <summary>
    /// Dummy class to enable double buffering in Panel
    /// </summary>
    public class BufferedPanel : System.Windows.Forms.Panel
    {
        // Construcor
        public BufferedPanel()
        {
            // Update control style
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw |
                ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
        }
    }
}
